package modelimplementation

import "salarypayment-case/Model"

type MailMethod struct {
	itsAddress string
}

func CreateMailMethod(address string) *MailMethod {
	return &MailMethod{itsAddress: address}
}

func (mm *MailMethod) GetAddress() string {
	return mm.itsAddress
}

func (mm *MailMethod) Pay(pc Model.Paycheck) {
	pc.SetField("Disposition", "Mail")
}